<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>html2.0-1</title>
    <link rel="stylesheet" href="1.css">
    <style>
        div {
            color: blue;
        }

        h6 {
            color: greenyellow;
        }

        h4 {
            color: green;
            color: indigo;
        }

        #n1 {
            color: red;
        }

        .n1 {
            color: indigo;
        }

        #n2 {
            color: pink;
            color: green;
        }
        .n2{
            color: pink;
            color: green;
        }
        .colorstyle{
            color: green;
        }
        .fontsize{
            font-size: 20px;
            color: red;
        }
        .bgmstyle{
            background-color: gray;
        }
        .borderstyle{
            border: 1px dotted black;
        }
    </style>
</head>

<body>
    <p>在一个标签内重复写入属性和属性值，只会显示最后一个属性和属性值.</p>
    <p style="color: black;color: red;color:blue;">Lorem ipsum dolor, sit amet consectetur adipisicing
        elit. Quibusdam illo perspiciatis debitis magni error itaque,
        eos dolorum cumque laboriosam autem eius repudiandae enim in
        nobis aliquid minima corrupti obcaecati. Esse.</p>
    <p>对于标签内，link里面小于head里面style属性能力小于标签内style属性</p>
    <div style="color: red;">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nulla, deleniti.</div>
    <h6>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nulla, deleniti.</h6>



    <p>标签>ID>class?</p>
    <h5 id="n1" class="n1" style="color: black;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas, earum.
    </h5>
    <h5 id="n1" class="n1">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas, earum.</h5>

    <p>如果在头部写上重复属性会显示最后一个属性和属性值，标签,id class都一样</p>
    <h4>Lorem ipsum dolor sit amet consectetur adipisicing elit. Laboriosam, dolorem.</h4>
    <h3 id="n2">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cumque, obcaecati.</h3>
    <h3 class="n2">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cumque, obcaecati.</h3>

    <p>class属性值可以有多个叠加,但是ID只能有一个，要是类的属性和属性值重复也是显示最后一个。</p>
    <div class="colorstyle  fontsize  bgmstyle  borderstyle">一次性叠加多个类！</div>

    <p>谷歌浏览器，一般标签默认文字的大小是16px，谷歌浏览器最小的12px，如果比12px还小，显示12px。</p>

</body>

</html>